package com.githan.ksback_v2_3.Mapper;

import com.githan.ksback_v2_3.Entity.SysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author https://github.com/Han56
 * @date 2021/4/19 17:52
 */
@Mapper
public interface SysUserMapper {

    //获取用户全部信息
    List<SysUser> getAllUserInfo();

    //通过用户名获取该用户的全部信息
    SysUser findUserInfoByName(String username);

    //通过用户名获取用户的角色
    List<String> getRoleCodeByUsername(String username);

}
